#ifndef KXLUA_NETLIB_H_
#define KXLUA_NETLIB_H_

#include "ilib.h"

#include "lua.h"

namespace kxlua {

class NetLib : public ILib {
public:
    NetLib(Lua& lua);
    virtual ~NetLib();

public:
    Lua& GetLua();

private:
    void AddClass(IClass* c);

private:
    virtual std::string GetName() const;
    virtual IClass * GetClass(std::string name) const;

    virtual bool Open();
    virtual bool Close();

private:
    Lua lua_;

    Classes classes;
};

}

#endif
